import request from "@/utils/request";


const urlPrefix = "/notification"

export function queryNotification(page, size) {

    return request({
        url: urlPrefix + "/list",
        method: "get",
        params: {
            page: page,
            size: size
        }
    })

}

export function addNotification(tittle, content) {

    return request({
        url: urlPrefix + "/add",
        method: "post",
        params: {
            tittle: tittle,
            content: content
        }
    })

}

export function updateNotification(id, tittle, content) {

    return request({
        url: urlPrefix + "/update",
        method: "post",
        params: {
            id: id,
            tittle: tittle,
            content: content
        }
    })
}

export function deleteNotification(id) {

    return request({
        url: urlPrefix + "/delete",
        method: "post",
        params: {
            id: id,
        }
    })
}
